<%--
  Created by IntelliJ IDEA.
  User: Elle
  Date: 2022/6/14
  Time: 9:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>测试application</title>
</head>
<body>

<%
   Integer count = (Integer) application.getAttribute("loginCount");
   if(count==null){
       count = 1;
   }else{
       count += 1;
   }
    application.setAttribute("loginCount",count); //记录进入网站的人数

%>
总人数：<%=count %>
</body>
</html>
